<refresh> element

The <refresh> element is a task element that instructs the device to refresh the specified card variables. The device also refreshes the display if any of those variables are currently shown.

Syntax

where content represents the variables to refresh:
 
content You must specify at least one variable in a <refresh> statement: 
<var>  (see <setvar> element

Example

The following WML builds on the example shown by adding a "Clear" option that lets the user clear the First Name and Last Name fields in order to enter new search criteria. The code specifies a second <do> element that uses <refresh> to reset the first and last variables to NULL when the user presses the OPTIONS key.


NOTE     You can use the <refresh> element to set variables to any values, not just to "reset" them to NULL as shown in this example.